package online.longzipeng.mywebdemo;

import online.longzipeng.mywebdemo.enums.BaseEnum;
import online.longzipeng.mywebdemo.enums.CheckStatusEnum;
import online.longzipeng.mywebdemo.enums.UserStatusEnum;
import org.junit.jupiter.api.Test;

/**
 * @Author: lzp
 * @description: 枚举相关练习demo
 * @Date: 2022/9/20
 */
public class EnumsDemo {

	public static void main(String[] args) {
		BaseEnum baseEnum1 = BaseEnum.valueOf(CheckStatusEnum.class, 2);
		BaseEnum baseEnum2 = BaseEnum.valueOf(UserStatusEnum.class, 2);
		System.out.println(baseEnum1.getTitle());
		System.out.println(baseEnum2.getTitle());
	}

	@Test
	public void testBaseEnumGetOption(){
		System.out.println(BaseEnum.getOptions(CheckStatusEnum.class));
		System.out.println(BaseEnum.getOptions(UserStatusEnum.class));
	}
}
